﻿<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td width="8%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">ID</font></div>
            </td>
            <td width="8%" bgcolor="e7e7e7">
                <div align="center">
                    采集数目</div>
            </td>
            <td width="30%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">已采集ID</font></div>
            </td>
            <td width="27%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">图片采集</font></div>
            </td>
            <td width="19%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">加入时间</font></div>
            </td>
            <td width="8%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">项目管理</font></div>
            </td>
        </tr>
        <%
set rs=server.createobject("adodb.recordset")
sql="select * from cjitem"
rs.open sql,conn,1,1
i=0
do while not rs.eof

        %>
        <tr>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("id")%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("endid")+1%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("startid")%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%if rs("xmid")=1 then
	cjurl="cj_comic.asp"
	else
	cjurl="cj_comic_zj.asp"
	end if%>
                    <%if rs("startid")=0 then%><input name="cj" type="button" class="Submit" id="cj"
                        onclick="(location='<%=cjurl%>?itemid=<%=rs("id")%>&startid=<%=rs("startid")%>')"
                        value="开始采集"><%elseif rs("startid")>=rs("endid")+1 then%><input name="cj" type="button"
                            disabled class="Submit" id="cj" onclick="(location='<%=cjurl%>?itemid=<%=rs("id")%>&amp;startid=<%=rs("startid")%>')"
                            value="已经完成"><%else%><input name="cj" type="button" class="Submit" id="cj" onclick="(location='<%=cjurl%>?itemid=<%=rs("id")%>&startid=<%=rs("startid")%>')"
                                value="继续采集"><%end if%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("adddate")%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="cj_zj.asp?id=<%=rs("id")%>&act=del" onclick="{if(confirm('确定删除此项目吗!?')){return true;}return false;}">
                        删除</a></div>
            </td>
        </tr>
        <% i=i+1 
rs.movenext 
loop 
rs.close
set rs=nothing
set conn=nothing%>
    </table>
</body>
</html>
